<template>
  <div class="goodDetalits">
    <!-- 轮播图 -->
    <div class="swipeBox">
      <div class="back" @click="back">
        <i class="iconfont icon-fanhui"></i>
      </div>
      <van-swipe @change="onChange" class="swipe">
        <van-swipe-item class="swip-item">
          <img
            src="https://mall.s.maizuo.com/5f727ae93559d9c445e944a58211b538.png?x-oss-process=image/resize,w_563"
            alt
          />
        </van-swipe-item>
        <van-swipe-item class="swip-item">
          <img
            src="https://mall.s.maizuo.com/71e5b918b306be65390ff0c3fb8155f2.jpg?x-oss-process=image/resize,w_563"
            alt
          />
        </van-swipe-item>
        <van-swipe-item class="swip-item">
          <img
            src="https://mall.s.maizuo.com/85692b2f7a7c0ac417a39ec33b4d8895.jpg?x-oss-process=image/resize,w_563"
            alt
          />
        </van-swipe-item>
        <van-swipe-item class="swip-item">
          <img
            src="https://mall.s.maizuo.com/ebbcef931beb1d633533835ef7f51639.jpg?x-oss-process=image/resize,w_563"
            alt
          />
        </van-swipe-item>

        <div class="custom-indicator" slot="indicator">{{ current + 1 }}/4</div>
      </van-swipe>
    </div>

    <!-- 商品的信息 -->
    <div class="item-info">
      <div class="item-info-container">
        <div class="item-info-master">
          <span class="labels">
            <span style="background-color: rgb(192, 49, 49);">爆款</span>
            <span style="background-color: rgb(120, 160, 209);">包邮</span>
          </span>
        
      【福建】白心蜜柚 2枚装 4.5斤（单枚1.8斤-2.3斤）
    
        </div>
        <div class="item-info-slave">
      闻名“中国蜜柚之乡” 皮薄肉厚饱满 晶莹甜润多汁
    </div>
        <div class="item-info-price-container">
          <div class="item-info-price">
            <span class="icon">￥</span>
            44.9
            <span class="market">￥56.9</span>
          </div>
          <div class="item-info-sale-count">3932人购买</div>
        </div>
      </div>
    </div>
    <!-- 规格 -->
    <div class="item-cell-parent">
      <div class="item-cell">
        规格：
        <span>
          <i class="iconfont icon-cheng"></i>1
        </span>
        <i class="iconfont icon-xiayige item-right"></i>
      </div>
    </div>
    <!-- 配送城市 -->
    <!-- <div class="item-city">
      <div class="item-delivery-info">
        <div class="item-left">
            <div class="item-city-label">配送至：</div>
        <div>
          请选择配送范围
          <span>（必选）</span>
        </div>
        </div>
        <i class="iconfont icon-xiayige item-right"></i>
      </div>
    </div> -->
    <distribu></distribu>
    <!-- 包邮 -->
    <div class="item-service">
        <div class="item-service-line">
            <i class="iconfont icon-baoyouortiantuihuo"></i><span>包邮</span>
        </div>
    </div>
    <!-- 商品详情 -->
    <div class="item-detail-topic">
        <h3 class="title">
            <span>商品详情</span>
        </h3>
    </div>
    <!-- 商品详情项 -->
    <div class="item-detail" style="background:#fff; height:50px;margin-bottom:1px;">
      <div class="item-detail-unit" style="height:100%;   display: flex;
    align-items: center; padding:0 15px;">
        <label style="width:25%; fontSize:14px;">品牌</label>
        <span style="width:70%; fontSize:14px;">水果</span>
      </div>      
    </div>
    <div class="item-desc">
      <div>
        <img class="img" src="https://mall.s.maizuo.com/3e4b70023588c364c07d57bd57a59f27.jpg" alt="" style="width:100%">
      </div>
      <div>
        <img class="img" src="https://mall.s.maizuo.com/7e518588a0fce3cc2ac2de1c2c99005f.jpg" alt="" style="width:100%">
        <img class="img" src="https://mall.s.maizuo.com/c59eeef818aba278170ef3fd39ee98e2.jpg" alt="" style="width:100%">
        <img class="img" src="https://mall.s.maizuo.com/2f2c80f61e8808955071372304128374.jpg" alt="" style="width:100%">
        <img class="img" src="https://mall.s.maizuo.com/eb19d13255cf906eee5bc4e11e053214.jpg" alt="" style="width:100%">
        <img class="img" src="https://mall.s.maizuo.com/c416e54817c50b0952fa4ba44dbdf109.jpg" alt="" style="width:100%">
        <img class="img" src="https://mall.s.maizuo.com/0f3745719b13780d6b03890302b4d85e.jpg" alt="" style="width:100%">
        <img class="img" src="https://mall.s.maizuo.com/9c3a129d6c90872fa8e3d759d3cb5c6d.jpg" alt="" style="width:100%">
        <img class="img" src="https://mall.s.maizuo.com/d8fe1c8e356d38ce53d809586e9d42c7.jpg" alt="" style="width:100%">
        <img class="img" src="https://mall.s.maizuo.com/2f5953272e24f4bb901dce1a65289acf.jpg" alt="" style="width:100%">
        <img class="img" src="https://mall.s.maizuo.com/b102175006dea8de11324e0f872bfa7f.jpg" alt="" style="width:100%">
        <img class="img" src="https://mall.s.maizuo.com/db6e368694587fbc7fcf0530de8910e0.jpg" alt="" style="width:100%">
        <img class="img" src="https://mall.s.maizuo.com/6c79f8e2dd296e748ee177c7192be3c6.jpg" alt="" style="width:100%">
        <img class="img" src="https://mall.s.maizuo.com/c5ec807cb93534785b3acce92472df32.jpg" alt="" style="width:100%">
        <img class="img" src="https://mall.s.maizuo.com/7e11f7c4cace6e9f8a54393362d06b15.jpg" alt="" style="width:100%">
        <img class="img" src="https://mall.s.maizuo.com/c83d27b47b63861e11836455f7c7e525.jpg" alt="" style="width:100%">
        <img class="img" src="https://mall.s.maizuo.com/a5005467a3616ca5e939dc303b420c29.jpg" alt="" style="width:100%">
      </div>
    </div>

    <!-- 预订流程 -->
    <div class="item-faq">
     <div class="item-faq-title"> 
        <h3>预定流程及须知</h3>
     </div>
     <div class="item-faq-pic" style="width:100%;">
       <img src="https://file.sdyxmall.com/h5/v1/public/app/img/group5.b0b24d0.png" alt="" style="width:100%;">
     </div>
     <div class="item-faq-context">
       <h3 class="titleOne">一、关于发货</h3>
       您下单后商品将在购买成功后1-3个工作日内发出（周末、法定节假日需顺延）；<br>
     <h3>二、关于售后</h3>
       1、生鲜类商品，不支持无理由的退货以及拒收，请您下单前认真考虑，介意请谨拍；<br><br>
       2、商品质量问题请在签收商品24小时内联系客服并提交问题商品、包装等完整照片及相关证明（订单号、清晰的快递面单图片及商品问题图片3-5张），核准后，我们将及时为您售后处理。签收时起超过24小时，平台不处理售后；<br><br>
       3、确定收货后，因个人原因储存不当造成的商品变质，不在售后范围内；所以也请客户收货时开箱检查，有任何问题第一时间联系客服处理。<br><br>
       【售后流程】：<br><br>
       1、点击“我的-我的订单”进入订单列表页；<br><br>
       2、进入订单详情页，点击仅退款（发货后），填写退款原因，上传商品图片；<br><br>
       3、客服审核通过；<br><br>
       4、完成退款；<br><br>
      <h3>三、配送与签收</h3>
       1、购买产品后，请客户保持手机畅通，由于客户手机关机或没有接通，地址错误或联系方式错误导致快递员派送不成功等客户因素，不在售后范围内。<br><br>
       2、为保障您的权益，请您签收时务必当面拆箱验货，确认无误后再进行签收，如商品配送有误、包装破损、商品腐烂、重量数量不对等问题，请当场向配送人员提出，并及时联系平台客服尽快为您处理。<br><br>
       3、您可以本人签收商品或委托他人代为签收商品，被委托人的签收视为收货人本人签收。<br><br>
       苏打客服热线400-1808-400；客服服务时间：周日至周四09:00-22:00，周五至周六09:00-22:30。
     </div>
    </div>
    <div class="kongbai"></div>
    <!-- 底部 -->
    <div class="footer">
        <div class="car">
           <i class="iconfont icon-gouwuche"></i>
        </div>
        <div class="buynow" @click="goto">
            立即购买
        </div>
        <div class="add-cart">
            加入购物车
        </div>
    </div>

  </div>
</template>
<script>
import distribu from '../common/distribuArea'
export default {
  data() {
    return {
      current: 0
    };
  },
  methods: {
    goto(){
      this.$router.push("/car/status")
    },
    //返回
    back(){
      this.$router.push("/index/list")
    },
    onChange(index) {
      this.current = index;
    }
  },
  components:{
      distribu
  }

};
</script>
<style lang="less" scoped>
.goodDetalits {
  background: #f4f4f4;
}

//轮播图
.swipeBox {
  position: relative;
}
.swipe {
  position: relative;
  height: 375px;
}
.swip-item {
  height: 100%;
  .img{
    width: 100%;
  }
}
.custom-indicator {
  height: 15px;
  background: #fff;
  position: absolute;
      padding: 0 4px;
    line-height: 15px;
    color: #bdc0c5;
    font-size: 11px;
    
  bottom: 15px;
  right: 15px;
}
//    返回按钮
.back {
  border-radius: 50%;
  top: 10px;
  left: 10px;
  position: absolute;
  z-index: 100;
  height: 28px;
  width: 28px;
  background: #fff;
  opacity: 0.5;

  display: flex;
  justify-content: center;
  align-items: center;
  .iconfont {
    font-size: 23px;
   color: rgb(0, 0, 0);
  }
}
//商品信息
.item-info {
  background: #fff;
  padding: 15px;
  .item-info-master {
    font-size: 15px;
    max-height: 44px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    span {
      display: inline-block;
      color: #fff;
      height: 15px;
      line-height: 15px;
      padding: 0 8px;
      margin-right: 5px;
      font-size: 10px;
      border-radius: 1px;
      vertical-align:baseline;
    }
  }
  .item-info-slave {
    font-size: 13px;
    color: #797d82;
    margin-top: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .item-info-price-container {
    margin-top: 10px;
    height: 30px;
    .item-info-price {
      float: left;
      width: 75%;
      color: #c03131;
      font-size: 20px;
      height: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      .market {
        font-size: 11px;
        text-decoration: line-through;
        color: #bdc0c5;
      }
    }
    .item-info-sale-count {
      height: 100%;
      vertical-align: bottom;
      float: left;
      width: 25%;
      text-align: right;
      font-size: 11px;
      color: #bdc0c5;
      line-height: 40px;
    }
  }
}
//规格
.item-cell-parent {
  background: #fff;
  margin-top: 1px;
  height: 50px;
  padding: 15px;
    box-sizing: border-box;
  font-size: 13px;
  color: #797d82;

  .item-right {
    float: right;
  }
}
//配送城市
.item-city {
    background: #fff;
  margin-top: 1px;
  height: 50px;
  padding: 15px;
    box-sizing: border-box;
  font-size: 13px;
  .item-delivery-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    .item-left{
        display: flex;
       .iconfont {
            color: #797d82;
       }
    }
    .item-city-label {
    
      color: #797d82;
    }
    span {
      color: #c03131;
    }
     .item-right {
    float: right;
  }
  }
 
}
// 包邮
.item-service{
    margin-top: 1px;
    background: #fff;
    padding:10px 13px;
    color: #797d82;
    font-size: 14px;
    .item-service-line{
 display: flex;
    justify-content: flex-start;
    align-items: center;
    }
   
    .iconfont{
          font-size: 16px;
         color: rgb(192, 49, 49);
         margin-right: 5px;
    }
    
}
// 商品详情
.item-detail-topic{
    height: 46px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0 1px;
   .title {
    color: #797d82;
    font-size: 13px;
    text-align: center;
    line-height: 1.1;
    
}
span{
    position: relative;
}
 span:before {
    content: "";
    position: absolute;
    top: 52%;
    left: -26px;
    background: #ededed;
    width: 18px;
    height: 1px;
}
span:after {
    content: "";
    position: absolute;
    top: 52%;
   
     left: 62px;
    background: #ededed;
    width: 18px;
    height: 1px;
}
//商品详情项
.item-detail{
   

  .item-detail-unit {   
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  
}
}
//图片描述
.item-desc{
  width: 100%;
  div{
    width: 100%;   
  }
 
}
}
//预定流程
.item-faq{
  background: #fff;
  .item-faq-title{
        padding: 10px 0;
        font-size: 13px;
         color: #797d82;
         display: flex;
         justify-content: center;
         align-items: center;
         h3{
           position: relative;
         }
         &::before{
          content: "";
    position: absolute;
  
    background: #ededed;
    z-index: 10;
    // background: red;
    width: 18px;
    height: 1px;
        left: 106px;
           

         }
            &::after{
          content: "";
    position: absolute;
  
    background: #ededed;
    z-index: 10;
    // background: red;
    width: 18px;
    height: 1px;
        left: 250px;
           

         }
  }
  .item-faq-context{
    line-height: 1.5;
    font-size: 12px;
    padding: 0 15px;
        color: #2c3e50;
        .titleOne{
          margin-top: 0;
        }
    h3{
      margin: 25px 0;
             color: #797d82;
      font-size: 14px;
    }
  }
}
.kongbai{
    width: 100%;
    height: 50px;
}
//底部

.footer{
    bottom: 0;
    background: #fff;
    border: 1px solid #ededed;
    position: fixed;
    width: 100%;
    height: 49px;
    display: flex;
   .car{
       display: flex;
       justify-content: center;
       align-items: center;
       flex: 1;
       .iconfont {
    font-family: "iconfont" !important;
    font-size: 32px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
    }
    .buynow{
         display: flex;
       justify-content: center;
       align-items: center;
        flex: 2;
    }.add-cart{
         display: flex;
       justify-content: center;
       align-items: center;
        flex: 2;
        color: #fff;
            background: #c03131;
    }
}
</style>